package com.ruoyi.common.core.Entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashMap;
import java.util.Map;

/**
 * 抢购订单
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PanicBuyingOrders {

    private long panic_buying_order_id; //抢购订单ID
    private long user_id; //抢购订单所属用户ID
    private long order_id; //订单ID
    private long goods_id; //商品ID（与优惠券ID二选一）
    private long coupons_id; //优惠券ID（与商品ID二选一）
    private boolean del_flag; //删除标志（ 0未删除，1已删除）

    Map<String,Object> params; //请求参数

    public Map<String, Object> getParams() {
        if (params == null) {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }
}
